package com.naizhuai.ui.components.swipeback;

/**
 * @author：lichenxi
 * @date 2018/1/10 12
 * email：525603977@qq.com
 * Fighting
 */
public interface ISwipeBackActivity {
    SwipeBackLayout getSwipeBackLayout();

    /**
     * 限制SwipeBack的条件,默认栈内Fragment数 <= 1时 , 优先滑动退出Activity , 而不是Fragment
     *
     * @return true: Activity可以滑动退出, 并且总是优先;  false: Fragment优先滑动退出
     */
    boolean swipeBackPriority();
}
